#include <iostream>
#include <deque>
#include <string>
#include <algorithm>
using namespace std;

int main_5()
{
    deque<int> int_deq;
    int_deq.push_back(2);
    int_deq.push_front(1);
    for(auto val:int_deq)
    {
        cout << val << " ";
    }
    cout<<endl;
    for (deque<int>::iterator it=int_deq.begin();it!=int_deq.end() ; it++)
    {
        int stride=distance(int_deq.begin(),it);
        cout << "int_deq["<<stride<<"]="<<*it << endl;
    }
    cout <<endl;
    for (int i=0;i<int_deq.size() ;i++ )
    {
     cout << "int_deq["<<i<<"]="<<int_deq.at(i) << endl;
    }
	return 0;
}
